import request from '@/utils/request'

// 查询公告阅读记录列表
export function listRead(query) {
  return request({
    url: '/interest/notice/read/list',
    method: 'get',
    params: query
  })
}

// 查询公告阅读记录详细
export function getRead(id) {
  return request({
    url: '/interest/notice/read/' + id,
    method: 'get'
  })
}

// 新增公告阅读记录
export function addRead(data) {
  return request({
    url: '/interest/notice/read',
    method: 'post',
    data: data
  })
}

// 修改公告阅读记录
export function updateRead(data) {
  return request({
    url: '/interest/notice/read',
    method: 'put',
    data: data
  })
}

// 删除公告阅读记录
export function delRead(id) {
  return request({
    url: '/interest/notice/read/' + id,
    method: 'delete'
  })
}

// 导出公告阅读记录
export function exportRead(query) {
  return request({
    url: '/interest/read/export',
    method: 'get',
    params: query
  })
}
